#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QFile>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    static int tomcatPort;
    static int mysqlPort;
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    void initConfig(QFile &config);
private slots:
    void onTomcatCheckReceive(bool flag);
    void onMysqlCheckReceive(bool flag);
    void onLogRead(QString str);
    void on_tomcatStart_clicked();
    void on_tomcatStop_clicked();
    void on_mysqlStart_clicked();
    void on_mysqlStop_clicked();
};

#endif // MAINWINDOW_H
